<template>
  <a-layout-content style="padding: 0 50px">
    <the-header></the-header>
    <a-layout style="padding: 24px 0; background: #fff">
      <a-layout-sider width="200" style="background: #fff">
        <a-menu
                v-model:selectedKeys="selectedKeys2"
                v-model:openKeys="openKeys"
                mode="inline"
                style="height: 100%"
        >
          <a-sub-menu key="sub1">
            <template #title>
                <span>
                  <user-outlined />
                  商家管理
                </span>
            </template>
            <a-menu-item key="1">option1</a-menu-item>
            <a-menu-item key="2">option2</a-menu-item>
            <a-menu-item key="3">option3</a-menu-item>
            <a-menu-item key="4">option4</a-menu-item>
          </a-sub-menu>
          <a-sub-menu key="sub2">
            <template #title>
                <span>
                  <laptop-outlined />
                  商品管理
                </span>
            </template>
            <a-menu-item key="/admin/Brand">
              <router-link to="/admin/Brand">
                品牌管理
              </router-link>
            </a-menu-item>
            <a-menu-item key="/admin/SpecificationList">
              <router-link to="/admin/SpecificationList">
                规格管理
              </router-link>
            </a-menu-item>
            <a-menu-item key="/admin/template">
              <router-link to="/admin/template">模块管理</router-link>
            </a-menu-item>
            <a-menu-item key="/admin/category">
              <router-link to="/admin/category">分类管理</router-link>
            </a-menu-item>
            <a-menu-item key="/admin/goods">
              <router-link to="/admin/goods">商品审核</router-link>
            </a-menu-item>
          </a-sub-menu>
          <a-sub-menu key="sub3">
            <template #title>
                <span>
                  <notification-outlined />
                  广告管理
                </span>
            </template>
            <a-menu-item key="10">广告类别</a-menu-item>
            <a-menu-item key="/content/adminContent">
              <router-link to="/content/adminContent">广告内容</router-link>
            </a-menu-item>
          </a-sub-menu>
        </a-menu>
      </a-layout-sider>
      <a-layout-content :style="{ padding: '0 24px', minHeight: '280px' }">
        <router-view></router-view>
      </a-layout-content>
    </a-layout>
    <the-footer></the-footer>
  </a-layout-content>
</template>

<script lang="ts">
  import { defineComponent } from 'vue';
  import HelloWorld from '@/components/HelloWorld.vue'; // @ is an alias to /src
  import TheHeader from '@/components/the-header.vue';
  import TheFooter from '@/components/the-footer.vue';

  export default defineComponent({
    name: 'Home',
    components: {
      HelloWorld,
      TheHeader,
      TheFooter
    },
  });
</script>
